﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
//    定义一个员工类，存放用户的工号、姓名和部门信息；
//定义两个构造函数，一个是无参；
//一个有参构造函数，对类的属性进行初始化。
    class Demo01
    {
        private int number;
        private string name;
        private string message;
        public int Number
        {
            get { return this.number; }
            set { this.number = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Message
        {
            get { return this.message; }
            set { this.message = value; }
        }
        public Demo01(int Number, string Name, string Message)
        {
            this.number = Number;
            this.name = Name;
            this.message = Message;
            Console.WriteLine("{0}{1}{2}", this.Number, this.Name, this.Message);
        }
        //public void S()
        //{
        //    Console.WriteLine(this.number,this.name,this.message);
        //}
        //public Demo01(int number,string name,string message)
        //{
        //    this.number = number;
        //    this.name = name;
        //    this.message = message;
        //}

    }
}
